<?php

namespace app\admin\validate;

use think\Validate;

class Question extends Validate {
  protected $rule = [
    'content|考题内容' => 'require',
    'answers|考题答案' => 'require',
    'right|正确选项'   => 'require|egt:0',
  ];
  protected $msg = [
    'right.require' => '必须选择正确答案',
    'right.egt'     => '必须选择正确答案',
  ];
}